package com.thinksns.sociax.t4.model;

import com.thinksns.sociax.thinksnsbase.bean.SociaxItem;

import org.json.JSONObject;

/**
 * @author LeiYan
 * @describe 系统通知消息
 * @date 2017/7/26
 * @contact email:907238552@qq.com
 */

public class SystemMessageModel extends SociaxItem {
    private long id;
    private String body;
    private long ctime;

    public SystemMessageModel() {
    }

    public SystemMessageModel(JSONObject object) {
        if (object == null) return;
        if (object.has("id") && !object.isNull("id")) {
            setId(object.optLong("id"));

        }
        if (object.has("body") && !object.isNull("body")) {
            setBody(object.optString("body"));

        }
        if (object.has("ctime") && !object.isNull("ctime")) {
            setCtime(object.optLong("ctime"));
        }
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public long getCtime() {
        return ctime;
    }

    public void setCtime(long ctime) {
        this.ctime = ctime;
    }

    @Override
    public boolean checkValid() {
        return false;
    }

    @Override
    public String getUserface() {
        return null;
    }
}
